const getters = {
  tag: (state) => state.tags.tag,
  language: (state) => state.common.language,
  website: (state) => state.common.website,
  userInfo: (state) => state.user.userInfo,
  colorName: (state) => state.common.colorName,
  themeName: (state) => state.common.themeName,
  isShade: (state) => state.common.isShade,
  isCollapse: (state) => state.common.isCollapse,
  keyCollapse: (state, getters) =>
    getters.screen > 1 ? getters.isCollapse : false,
  screen: (state) => state.common.screen,
  isLock: (state) => state.common.isLock,
  isFullScren: (state) => state.common.isFullScren,
  isMenu: (state) => state.common.isMenu,
  lockPasswd: (state) => state.common.lockPasswd,
  tagList: (state) => state.tags.tagList,
  tagWel: (state) => state.tags.tagWel,
  token: (state) => state.user.token,
  roles: (state) => state.user.roles,
  permission: (state) => state.user.permission,
  menuId: (state) => state.user.menuId,
  // logsList: (state) => state.logs.logsList,
  // logsLen: (state) => state.logs.logsList.length || 0,
  logsFlag: (state, getters) => getters.logsLen === 0,
  // flowRoutes: (state) => state.dict.flowRoutes,
  menus: (state) => state.user.menus,
  activeMenu: (state) => state.user.activeMenu,
  allMenu: (state) => state.user.allMenu,
  collectMenus: (state) => state.user.collectMenus,
  recommonMenuList: (state) => state.user.recommonMenuList,
  factoryId: (state) => state.user.factoryId,
  factoryList: (state) => state.user.factoryList,
  account: (state) => state.user.account,
  password: (state) => state.user.password,
  changeState: (state) => state.user.changeState,
};
export default getters;
